package com.bjpowernode.crm.workbench.service;

import com.bjpowernode.crm.workbench.domain.Activity;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * 郭俊才
 * 2021/8/22
 */
public interface ActivityService {

    //添加市场活动
    int saveSelective(Activity record);
    //删除市场活动
    int removeList(String[] ids);
    //有选择的修改市场活动
    int editByPrimaryKeySelective(Activity record);
    //根据主键查询
    Activity queryByPrimaryKey(String id);
    //有条件的查询
    PageInfo<Activity> queryByConditions(Activity activity, Integer pageNum, Integer pageSize);
    //有选择的导出数据
    List<Activity> queryByIds(String[] ids);
    //导出全部数据
    List<Activity> queryAll();
    //导入数据
    int saveForList(List<Activity> list);

    //根据名称模糊查询
    List<Activity> queryByName(String activityName);
    //根据名称模糊查询和线索id查询
    List<Activity> queryByNameAndClueId(String activityName,String clueId);
    //根据主键查询市场活动详情
    Activity queryByPrimaryKeyForDetails(String id);
    //根据线索主键查找该线索关联的市场活动
    List<Activity> queryActivityByCluePrimaryKey(String id);
}
